package cn.iocoder.yudao.module.energy.controller.admin.device.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 能耗设备分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class EnergyDevicePageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "DEV-001")
    private String deviceId;

    @Schema(description = "设备名称", example = "配电箱A")
    private String deviceName;

    @Schema(description = "设备型号", example = "DX-100A")
    private String model;

    @Schema(description = "安装位置", example = "主楼/5层/501室/东南角")
    private String location;

    @Schema(description = "能耗类型", example = "electricity")
    private String energyType;

    @Schema(description = "状态", example = "normal")
    private String status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

} 